-- GENERATED SPELL FOR [Steward of Time] --


function spell0_20142(pUnit, Event) --@Flight through Caverns,n/a--
pUnit:FullCastSpellOnTarget(34891,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20142', 540, 1)
end

function Sorts_20142(pUnit, Event)
local choix_sorts_20142 = math.random(0, 0)
if choix_sorts_20142 == 0 then
pUnit:RegisterEvent('spell0_20142', 1, 1)
end
end

function mob20142_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20142', math.random(1500, 3000), 1)
end

function mob20142_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20142_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20142_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20142, 1, 'mob20142_Action')
RegisterUnitEvent(20142, 2, 'mob20142_Leave')
RegisterUnitEvent(20142, 3, 'mob20142_Kill')
RegisterUnitEvent(20142, 4, 'mob20142_Die')
